<?php echo $this->load->view('main'); ?>

<h6>Leave your idea about an topic</h6>

<?php echo form_open("act/other"); ?>
<?php
$title = array(
    'name' => 'other_title',
    'value' => set_value('title'),
    'id' => 'input01',
    'required' => '',
    'placeholder' => 'Title...',
    'class' => 'input-xlarge'
);
$content = array(
    'name' => 'other_body',
    'value' => set_value('body'),
    'id' => 'input01',
    'required' => '',
    'placeholder' => 'Content...',
    'class' => 'input-xlarge',
    'rols' => '20',
    'cols' => '20'
);

$publish_dated = array(
    'name' => 'dated',
    'valut' => set_value('createDate'),
    'id' => 'input01',
    'required' => '',
    'class' => 'input_xlarge'
);
?>

<div class="control-group">

    <?php
    echo '<div class="controls">
		   <span style="color:red; margin-left:12px;">' . validation_errors('&times;') . '</span>
		   </div>';
    ?>
    <div class="control-group">
        <label class="control-label" for="input01">Title </label>
        <div class="controls">
            <?php echo form_input($title); ?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="input01">Content </label>
        <div class="controls">
            <?php echo form_textarea($content); ?>
        </div>
    </div>

    <input type="hidden" id="date" name="date">

    <script type="text/javascript">
        document.getElementById('date').value = Date();
    </script>


    <div class="control-group">
        <div class="controls">
            <?php echo form_input(array('type' => 'hidden', 'name' => 'author', $this->session->userdata('user_login'))); ?>
        </div>
    </div>

    <div class="form-actions">
        <button type="submit" class="btn btn-primary">Save </button>
        <a href="" class="btn">Cancel </a>
    </div>
    <?php echo form_close(); ?>